package com.ruoyi.car.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

@AllArgsConstructor
@Getter
public enum WxUserStatus {
    NOT_REGISTER(0,"未注册"),
    REGISTER(1, "已注册"),
    ;
    private Integer status;
    private String desc;

    public static WxUserStatus getByType(Integer status){
        return Arrays.stream(values()).filter(c-> c.getStatus().equals(status)).findFirst().orElse(null);
    }
}
